<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    console.log( Math.abs(-2) ) // absolute 绝对值 2
    console.log( Math.ceil(1.1) )  // 天花板  2
    console.log( Math.floor(2.9) )  // 地板  2
    console.log( Math.round(1.5) )  // 圆滑  2
  </script>
</body>
</html>